var t = require;
var e = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var a = t("AddCoinItem"),
    i = t("PlayPropView"),
    n = t("PlaySprite"),
    r = t("PsPlay"),
    s = t("GameEm"),
    c = new ((function () {
        function t() {}
        t.prototype.playPsCom = function (t, e, o, a) {
            void 0 === a && (a = 2);
            var i = this.setChildNode(o, t, e),
                n = i.getComponent(r.default);
            null == n || n.playPs(a);
            return i;
        };
        t.prototype.playCoinNum = function (t, e, o, i, n) {
            void 0 === n && (n = s.RewardResKind.jinBi);
            var r = this.setChildNode(o, t, e),
                c = r.getComponent(a.default);
            if (c) {
                c.setSpriteView(n);
                c.play(i, e, t, 1);
            }
            return r;
        };
        t.prototype.playPs = function (t) {
            var e,
                o = t.getComponentsInChildren(cc.ParticleSystem);
            for (var a in o) {
                o[a].stopSystem();
                null === (e = o[a]) || void 0 === e || e.resetSystem();
            }
        };
        t.prototype.stopPlayPs = function (t) {
            var e = t.getComponentsInChildren(cc.ParticleSystem);
            for (var o in e) e[o].stopSystem();
        };
        t.prototype.playItemScaleIn = function (t, e, o, a) {
            void 0 === a && (a = 1);
            t.scale = 0;
            t.opacity = 0;
            t.runAction(cc.sequence([cc.delayTime(o), cc.fadeIn(e), cc.scaleTo(e, a, a).easing(cc.easeBackOut())]));
        };
        t.prototype.playItemAnimal = function (t, e, o, a) {
            void 0 === a && (a = 1);
            t.scale = 0;
            t.opacity = 0;
            t.runAction(cc.sequence([cc.delayTime(o), cc.fadeIn(e), cc.scaleTo(e, a, a)]));
        };
        t.prototype.playPropMoveTo = function (t, e, o, a, n, r, s, c) {
            void 0 === s && (s = 1);
            var p = this.setChildNode(n, e, o).getComponent(i.default);
            null == p || p.setMoveTime(s);
            null == p || p.play(t, e.convertToNodeSpaceAR(a), r, c);
        };
        t.prototype.playSpriteMoveTo = function (t, e, o, a, i, r, s, c) {
            void 0 === c && (c = 1.2);
            var p = this.setChildNode(i, e, o).getComponent(n.default);
            null == p || p.setMoveTime(c);
            null == p || p.play(t, e.convertToNodeSpaceAR(a), r, s);
        };
        t.prototype.setChildNode = function (t, e, o) {
            var a = QLooperNode.getNode(t);
            a.parent = e;
            a.setPosition(e.convertToNodeSpaceAR(o));
            return a;
        };
        return t;
    })())();
window.PlayEffectDo = c;
o.default = c;
